package com.basic.business.common.execption;

import lombok.Getter;
import org.apache.shiro.authc.AuthenticationException;


@Getter
public class AuthException extends AuthenticationException {
    private int code;

    public AuthException(int code) {
        this.code = code;
    }

    public AuthException(int code, String message) {
        super(message);
        this.code = code;
    }

    public AuthException(Throwable cause, int code) {
        super(cause);
        this.code = code;
    }

    public AuthException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }
}